
#include <stdio.h>
#include <stdlib.h>

void f1(int ** p)
{
	*p = (int *)malloc(sizeof(int));
}

int main()
{
	int *p;
	int c;
	f1(&p);
	c = (int)p;
	printf("%d\n",c);
	printf("set heap\n");
	*p = 4;
	printf("the heap %d\n",*p);
	free(p);
	c = (int) p;
	printf("%d\n",c);
	printf("%d\n",(int)NULL);
	if(NULL == p)
	{
		printf("p is NULL\n");
	}

	return 0;
}
